#! /bin/bash
user=root
newpw=yedpay
sudoerpw=yedpay
rmcmd="echo $sudoerpw | sudo -S bash -c 'echo "$user:$newpw" | chpasswd'"
server_array=(31 32 33 35 36 37)
ipadd=192.168.2
for server in ${server_array[*]}
do
	echo "ssh to $server >>>"
	ssh -Tq ubuntu@$ipadd.$server $rmcmd
done
